<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:context="http://www.springframework.org/schema/context"    
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" >

    <context:component-scan base-package="org.geoserver.metadata" />

    <bean id="metadataCategory" class="org.geoserver.web.Category">
        <property name="nameKey" value="category.metadata" />
        <property name="order" value="1000" />
    </bean>

    <bean id="metadataMenuAuthorizer" class="org.geoserver.web.WorkspaceAdminComponentAuthorizer" />


    <bean id="metadataTemplatesPage" class="org.geoserver.web.MenuPageInfo">
        <property name="id" value="metadataTemplatesPage"/>
        <property name="titleKey" value="MetadataTemplatesPage.page.title"/>
        <property name="descriptionKey" value="MetadataTemplatesPage.page.description"/>
        <property name="componentClass" value="org.geoserver.metadata.web.MetadataTemplatesPage"/>
        <property name="category" ref="metadataCategory" />
        <property name="authorizer" ref="metadataMenuAuthorizer"/>
    </bean>
    
    <bean id="metadataBulkOperationsPage" class="org.geoserver.web.MenuPageInfo">
        <property name="id" value="metadataBulkOperationsPage"/>
        <property name="titleKey" value="MetadataBulkOperationsPage.page.title"/>
        <property name="descriptionKey" value="MetadataBulkOperationsPage.page.description"/>
        <property name="componentClass" value="org.geoserver.metadata.web.MetadataBulkOperationsPage"/>
        <property name="category" ref="metadataCategory" />
        <property name="authorizer" ref="metadataMenuAuthorizer"/>
    </bean>

    <bean id="metadataEditTabPanel" class="org.geoserver.metadata.web.layer.MetadataTabPanelInfo">
        <property name="id" value="metadataEditTabPanel" />
        <property name="titleKey" value="MetadataTabPanelInfo.title" />
        <property name="descriptionKey" value="MetadataTabPanelInfo.description" />
        <property name="componentClass"
                  value="org.geoserver.metadata.web.layer.MetadataTabPanel" />
    </bean>
</beans>
